package com.qch.concurrent.demo_05_interrupt;

/**
 * @Author qch
 * @Date 2021/7/29
 * 看中断抛出异常情况
 */
public class Main {
    public static void main(String[] args) throws InterruptedException {
        MyThread myThread1 = new MyThread();
        myThread1.start();
        Thread.sleep(100);
        //中断线程（线程睡觉，等待，join的时候调用这个方法）
        myThread1.interrupt();
        Thread.sleep(100);
        System.exit(0);
    }
}
